package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoMountType;
import com.muyu.danmo.mapper.DanmoMountTypeMapper;
import com.muyu.danmo.service.IDanmoMountTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 装裱类型Service业务层处理
 * 
 * @author yangle
 * @date 2024-11-27
 */
@Service
public class DanmoMountTypeServiceImpl implements IDanmoMountTypeService
{
    @Autowired
    private DanmoMountTypeMapper danmoMountTypeMapper;

    /**
     * 查询装裱类型
     * 
     * @param id 装裱类型主键
     * @return 装裱类型
     */
    @Override
    public DanmoMountType selectDanmoMountTypeById(Long id)
    {
        return danmoMountTypeMapper.selectDanmoMountTypeById(id);
    }

    /**
     * 查询装裱类型列表
     * 
     * @param danmoMountType 装裱类型
     * @return 装裱类型
     */
    @Override
    public List<DanmoMountType> selectDanmoMountTypeList(DanmoMountType danmoMountType)
    {
        return danmoMountTypeMapper.selectDanmoMountTypeList(danmoMountType);
    }

    /**
     * 新增装裱类型
     * 
     * @param danmoMountType 装裱类型
     * @return 结果
     */
    @Override
    public int insertDanmoMountType(DanmoMountType danmoMountType)
    {
        return danmoMountTypeMapper.insertDanmoMountType(danmoMountType);
    }

    /**
     * 修改装裱类型
     * 
     * @param danmoMountType 装裱类型
     * @return 结果
     */
    @Override
    public int updateDanmoMountType(DanmoMountType danmoMountType)
    {
        return danmoMountTypeMapper.updateDanmoMountType(danmoMountType);
    }

    /**
     * 批量删除装裱类型
     * 
     * @param ids 需要删除的装裱类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMountTypeByIds(Long[] ids)
    {
        return danmoMountTypeMapper.deleteDanmoMountTypeByIds(ids);
    }

    /**
     * 删除装裱类型信息
     * 
     * @param id 装裱类型主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMountTypeById(Long id)
    {
        return danmoMountTypeMapper.deleteDanmoMountTypeById(id);
    }
}
